/*
 * Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
 *
 * https://www.mall4j.com/
 *
 * 未经允许，不可做商业用途！
 *
 * 版权所有，侵权必究！
 */
package com.yami.shop.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yami.shop.bean.dto.SankeyDto;
import com.yami.shop.bean.model.FlowLog;
import com.yami.shop.bean.model.FlowRouteAnalysis;
import com.yami.shop.bean.param.FlowRouteAnalysisParam;

import java.util.Date;
import java.util.List;

/**
 * 流量分析—用户路径数据
 *
 * @author YXF
 * @date 2020-07-14 11:26:35
 */
public interface FlowRouteAnalysisService extends IService<FlowRouteAnalysis> {

    /**
     * 统计用户访问路径数据
     * @param flowAnalysisLogList 流量分析日志列表
     * @param startTime 起始时间
     */
    void routeInfo(List<FlowLog> flowAnalysisLogList, Date startTime);

    /**
     * 获取用户访问路径数据
     * @param flowRouteAnalysisParam
     * @return
     */
    SankeyDto getRoutData(FlowRouteAnalysisParam flowRouteAnalysisParam);
}
